package com.bsb.base.mapper;

import com.bsb.base.model.BsbFirmExample;
import com.bsb.base.model.BsbRunningAccount;
import com.bsb.base.model.BsbRunningAccountExample;
import com.bsb.base.model.BsbUserExample;

import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface BsbRunningAccountMapper {
    int countByExample(BsbRunningAccountExample example);

    int deleteByExample(BsbRunningAccountExample example);

    int deleteByPrimaryKey(String uuid);

    int insert(BsbRunningAccount record);

    int insertSelective(BsbRunningAccount record);

    List<BsbRunningAccount> selectByExample(BsbRunningAccountExample example);

    BsbRunningAccount selectByPrimaryKey(String uuid);

    int updateByExampleSelective(@Param("record") BsbRunningAccount record, @Param("example") BsbRunningAccountExample example);

    int updateByExample(@Param("record") BsbRunningAccount record, @Param("example") BsbRunningAccountExample example);

    int updateByPrimaryKeySelective(BsbRunningAccount record);

    int updateByPrimaryKey(BsbRunningAccount record);

    List<BsbRunningAccount> selectPage(BsbRunningAccountExample example);

	int countRunningAccount(@Param("runningrecord") BsbRunningAccountExample bsbRunningAccountExample,
			@Param("userrecord") BsbUserExample userExample, @Param("firmrecord") BsbFirmExample firmExample);

	List<BsbRunningAccount> getPageRunningAccount(@Param("runningrecord") BsbRunningAccountExample bsbRunningAccountExample,
			@Param("userrecord") BsbUserExample userExample, @Param("firmrecord") BsbFirmExample firmExample);
}